<?php

if (!defined('TYPO3_MODE')) {
	die ('Access denied.');
}

t3lib_extMgm::addPlugin(array('LLL:EXT:reality/Resources/Private/Language/locallang_db.xml:reality_listing_and_detail', $_EXTKEY . '_reality_listing_and_detail'), 'list_type');

t3lib_extMgm::addPlugin(array('LLL:EXT:reality/Resources/Private/Language/locallang_db.xml:reality_search', $_EXTKEY . '_reality_search'), 'list_type');

t3lib_extMgm::addPlugin(array('LLL:EXT:reality/Resources/Private/Language/locallang_db.xml:top_reality', $_EXTKEY . '_top_reality'), 'list_type');

t3lib_extMgm::addPlugin(array('LLL:EXT:reality/Resources/Private/Language/locallang_db.xml:newest_reality', $_EXTKEY . '_newest_reality'), 'list_type');

t3lib_extMgm::addPlugin(array('LLL:EXT:reality/Resources/Private/Language/locallang_db.xml:referency_box', $_EXTKEY . '_referency_box'), 'list_type');

t3lib_extMgm::addPlugin(array('LLL:EXT:reality/Resources/Private/Language/locallang_db.xml:agent_listing_and_detail', $_EXTKEY . '_agent_listing_and_detail'), 'list_type');

$TCA['city'] = array (
	'ctrl' => array (
		'title'				=> 'LLL:EXT:reality/Resources/Private/Language/locallang_db_city.xml:city',
		'label'				=> 'title',
		'tstamp'			=> 'tstamp',
		'crdate'			=> 'crdate',
		'delete'			=> 'deleted',
		'default_sortby'	=> 'ORDER BY crdate DESC',
		'enablecolumns'		=> array(
			'disabled' => 'hidden'
		),
		'dynamicConfigFile'	=> t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/city.php',
		'iconfile'			=> t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_city.gif',
		'searchFields'	=>	'title,alias',
	)
);

$TCA['property'] = array (
	'ctrl' => array (
		'title'				=> 'LLL:EXT:reality/Resources/Private/Language/locallang_db_property.xml:property',
		'label'				=> 'title',
		'tstamp'			=> 'tstamp',
		'crdate'			=> 'crdate',
		'delete'			=> 'deleted',
		'default_sortby'	=> 'ORDER BY crdate DESC',
		'enablecolumns'		=> array(
			'disabled' => 'hidden'
		),
		'dynamicConfigFile'	=> t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/property.php',
		'iconfile'			=> t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_property.gif',
		'searchFields'	=>	'title,alias',
	)
);

t3lib_extMgm::allowTableOnStandardPages('image');
$TCA['image'] = array (
	'ctrl' => array (
		'title'				=> 'LLL:EXT:reality/Resources/Private/Language/locallang_db_image.xml:image',
		'label'				=> 'title',
		'tstamp'			=> 'tstamp',
		'crdate'			=> 'crdate',
		'delete'			=> 'deleted',
		'default_sortby'	=> 'ORDER BY crdate DESC',
		'enablecolumns'		=> array(
			'disabled' => 'hidden'
		),
		'dynamicConfigFile'	=> t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/image.php',
		'iconfile'			=> t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_image.gif',
		'searchFields'	=>	'title,description',
	)
);

$TCA['agent'] = array (
	'ctrl' => array (
		'title'				=> 'LLL:EXT:reality/Resources/Private/Language/locallang_db_agent.xml:agent',
		'label'				=> 'name',
		'tstamp'			=> 'tstamp',
		'crdate'			=> 'crdate',
		'delete'			=> 'deleted',
		'default_sortby'	=> 'ORDER BY crdate DESC',
		'enablecolumns'		=> array(
			'disabled' => 'hidden'
		),
		'dynamicConfigFile'	=> t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/agent.php',
		'iconfile'			=> t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_agent.gif',
		'searchFields'	=>	'name,alias,phone_office,mobile,fax',
	)
);

$TCA['referency'] = array (
	'ctrl' => array (
		'title'				=> 'LLL:EXT:reality/Resources/Private/Language/locallang_db_referency.xml:referency',
		'label'				=> 'title',
		'tstamp'			=> 'tstamp',
		'crdate'			=> 'crdate',
		'delete'			=> 'deleted',
		'default_sortby'	=> 'ORDER BY crdate DESC',
		'enablecolumns'		=> array(
			'disabled' => 'hidden'
		),
		'dynamicConfigFile'	=> t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/referency.php',
		'iconfile'			=> t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/icon_referency.gif',
		'searchFields'	=>	'title,text',
	)
);

t3lib_extMgm::allowTableOnStandardPages('reality');
$TCA['reality'] = array (
	'ctrl' => array (
		'title'				=> 'LLL:EXT:reality/Resources/Private/Language/locallang_db_reality.xml:reality',
		'label'				=> 'title',
		'tstamp'			=> 'tstamp',
		'crdate'			=> 'crdate',
		'delete'			=> 'deleted',
		'default_sortby'	=> 'ORDER BY crdate DESC',
		'enablecolumns'		=> array(
			'disabled' => 'hidden'
		),
		'dynamicConfigFile'	=> t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/reality.php',
		'iconfile'			=> t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/reality.gif',
		'searchFields'	=>	'title,alias,street,short_description,bodytext,google_map',
	)
);

?>